<template>
  <div class="film">
    <van-sticky>
      <div class="top">
        <div class="ipt">
          <input type="text" placeholder="营养餐" />
          <div class="iconfont icon-sousuo"></div>
        </div>

        <div class="buy">已购买</div>
      </div>
    </van-sticky>

    <div class="items">
      <div class="item">
        <div class="iconfont icon-mianbao"></div>
        <div class="text">面包</div>
      </div>
      <div class="item">
        <div class="iconfont icon-Group"></div>
        <div class="text">甜点</div>
      </div>
      <div class="item">
        <div class="iconfont icon-baozi"></div>
        <div class="text">中式面点</div>
      </div>
      <div class="item">
        <div class="iconfont icon-kaochuan"></div>
        <div class="text">特色小吃</div>
      </div>
      <div class="item">
        <div class="iconfont icon-zhongshichaocai"></div>
        <div class="text">家常菜</div>
      </div>
    </div>
    <div class="items">
      <div class="item">
        <div class="iconfont icon-dangao"></div>
        <div class="text">蛋糕</div>
      </div>
      <div class="item">
        <div class="iconfont icon-yinpin"></div>
        <div class="text">饮品</div>
      </div>
      <div class="item">
        <div class="iconfont icon-yuebing"></div>
        <div class="text">热销月饼</div>
      </div>
      <div class="item">
        <div class="iconfont icon-naiping1"></div>
        <div class="text">宝宝辅食</div>
      </div>
      <div class="item">
        <div class="iconfont icon-VIP"></div>
        <div class="text">VIP免费</div>
      </div>
    </div>

    <div class="title">
      <div class="left">热卖好课</div>
      <div class="right">更多</div>
    </div>
    <div class="content">
      <div class="swiper-container swiper-container-00">
        <div class="swiper-wrapper">
          <div class="swiper-slide item">
            <div class="contain">
              <div class="img">
                <img src="../assets/2.png" alt="" />
              </div>
              <div class="text">
                【限时9.9元秒杀】 家宴必备！一品卤牛肉酥...
              </div>
              <div class="infoo">1958人加入学习</div>
            </div>
          </div>
        </div>
        <div class="swiper-wrapper">
          <div class="swiper-slide item">
            <div class="contain">
              <div class="img">
                <img src="../assets/2.png" alt="" />
              </div>
              <div class="text">
                【限时9.9元秒杀】 家宴必备！一品卤牛肉酥...
              </div>
              <div class="infoo">1958人加入学习</div>
            </div>
          </div>
        </div>
        <div class="swiper-wrapper">
          <div class="swiper-slide item">
            <div class="contain">
              <div class="img">
                <img src="../assets/2.png" alt="" />
              </div>
              <div class="text">
                【限时9.9元秒杀】 家宴必备！一品卤牛肉酥...
              </div>
              <div class="infoo">1958人加入学习</div>
            </div>
          </div>
        </div>
        <div class="swiper-wrapper">
          <div class="swiper-slide item">
            <div class="contain">
              <div class="img">
                <img src="../assets/2.png" alt="" />
              </div>
              <div class="text">
                【限时9.9元秒杀】 家宴必备！一品卤牛肉酥...
              </div>
              <div class="infoo">1958人加入学习</div>
            </div>
          </div>
        </div>
        <div class="swiper-wrapper">
          <div class="swiper-slide item">
            <div class="contain">
              <div class="img">
                <img src="../assets/2.png" alt="" />
              </div>
              <div class="text">
                【限时9.9元秒杀】 家宴必备！一品卤牛肉酥...
              </div>
              <div class="infoo">1958人加入学习</div>
            </div>
          </div>
        </div>
        <div class="swiper-wrapper">
          <div class="swiper-slide item">
            <div class="contain">
              <div class="img">
                <img src="../assets/2.png" alt="" />
              </div>
              <div class="text">
                【限时9.9元秒杀】 家宴必备！一品卤牛肉酥...
              </div>
              <div class="infoo">1958人加入学习</div>
            </div>
          </div>
        </div>
      </div>
    </div>
    <div class="title">
      <div class="left">热卖好课</div>
      <div class="right">更多</div>
    </div>
    <div class="content">
      <div class="swiper-container swiper-container-00">
        <div class="swiper-wrapper">
          <div class="swiper-slide item">
            <div class="contain">
              <div class="img">
                <img src="../assets/2.png" alt="" />
              </div>
              <div class="text">
                【限时9.9元秒杀】 家宴必备！一品卤牛肉酥...
              </div>
              <div class="infoo">1958人加入学习</div>
            </div>
          </div>
        </div>
        <div class="swiper-wrapper">
          <div class="swiper-slide item">
            <div class="contain">
              <div class="img">
                <img src="../assets/2.png" alt="" />
              </div>
              <div class="text">
                【限时9.9元秒杀】 家宴必备！一品卤牛肉酥...
              </div>
              <div class="infoo">1958人加入学习</div>
            </div>
          </div>
        </div>
        <div class="swiper-wrapper">
          <div class="swiper-slide item">
            <div class="contain">
              <div class="img">
                <img src="../assets/2.png" alt="" />
              </div>
              <div class="text">
                【限时9.9元秒杀】 家宴必备！一品卤牛肉酥...
              </div>
              <div class="infoo">1958人加入学习</div>
            </div>
          </div>
        </div>
        <div class="swiper-wrapper">
          <div class="swiper-slide item">
            <div class="contain">
              <div class="img">
                <img src="../assets/2.png" alt="" />
              </div>
              <div class="text">
                【限时9.9元秒杀】 家宴必备！一品卤牛肉酥...
              </div>
              <div class="infoo">1958人加入学习</div>
            </div>
          </div>
        </div>
        <div class="swiper-wrapper">
          <div class="swiper-slide item">
            <div class="contain">
              <div class="img">
                <img src="../assets/2.png" alt="" />
              </div>
              <div class="text">
                【限时9.9元秒杀】 家宴必备！一品卤牛肉酥...
              </div>
              <div class="infoo">1958人加入学习</div>
            </div>
          </div>
        </div>
        <div class="swiper-wrapper">
          <div class="swiper-slide item">
            <div class="contain">
              <div class="img">
                <img src="../assets/2.png" alt="" />
              </div>
              <div class="text">
                【限时9.9元秒杀】 家宴必备！一品卤牛肉酥...
              </div>
              <div class="infoo">1958人加入学习</div>
            </div>
          </div>
        </div>
      </div>
    </div>
    <div class="title">
      <div class="left">热卖好课</div>
      <div class="right">更多</div>
    </div>
    <div class="content">
      <div class="swiper-container swiper-container-00">
        <div class="swiper-wrapper">
          <div class="swiper-slide item">
            <div class="contain">
              <div class="img">
                <img src="../assets/2.png" alt="" />
              </div>
              <div class="text">
                【限时9.9元秒杀】 家宴必备！一品卤牛肉酥...
              </div>
              <div class="infoo">1958人加入学习</div>
            </div>
          </div>
        </div>
        <div class="swiper-wrapper">
          <div class="swiper-slide item">
            <div class="contain">
              <div class="img">
                <img src="../assets/2.png" alt="" />
              </div>
              <div class="text">
                【限时9.9元秒杀】 家宴必备！一品卤牛肉酥...
              </div>
              <div class="infoo">1958人加入学习</div>
            </div>
          </div>
        </div>
        <div class="swiper-wrapper">
          <div class="swiper-slide item">
            <div class="contain">
              <div class="img">
                <img src="../assets/2.png" alt="" />
              </div>
              <div class="text">
                【限时9.9元秒杀】 家宴必备！一品卤牛肉酥...
              </div>
              <div class="infoo">1958人加入学习</div>
            </div>
          </div>
        </div>
        <div class="swiper-wrapper">
          <div class="swiper-slide item">
            <div class="contain">
              <div class="img">
                <img src="../assets/2.png" alt="" />
              </div>
              <div class="text">
                【限时9.9元秒杀】 家宴必备！一品卤牛肉酥...
              </div>
              <div class="infoo">1958人加入学习</div>
            </div>
          </div>
        </div>
        <div class="swiper-wrapper">
          <div class="swiper-slide item">
            <div class="contain">
              <div class="img">
                <img src="../assets/2.png" alt="" />
              </div>
              <div class="text">
                【限时9.9元秒杀】 家宴必备！一品卤牛肉酥...
              </div>
              <div class="infoo">1958人加入学习</div>
            </div>
          </div>
        </div>
        <div class="swiper-wrapper">
          <div class="swiper-slide item">
            <div class="contain">
              <div class="img">
                <img src="../assets/2.png" alt="" />
              </div>
              <div class="text">
                【限时9.9元秒杀】 家宴必备！一品卤牛肉酥...
              </div>
              <div class="infoo">1958人加入学习</div>
            </div>
          </div>
        </div>
      </div>
    </div>

    <footNav> </footNav>
  </div>
</template>

<script>
import footNav from "../components/base/footNav.vue";

import Swiper from "swiper";
export default {
  components: {
    footNav,
  },
  mounted() {
    new Swiper(".swiper-container-00", {
      pagination: ".swiper-pagination-00",
      slidesPerView: "auto",
      paginationClickable: true,
      observer: true,
      observeParents: true,
      // paginationClickable: true,
      freeMode: true,
    });
    // new Swiper(".swiper-container-01", {
    //   pagination: ".swiper-pagination-00",
    //   slidesPerView: "auto",
    //   paginationClickable: true,
    //   observer: true,
    //   observeParents: true,
    //   // paginationClickable: true,
    //   freeMode: true,
    // });
  },
};
</script>

<style lang='less'>
.film {
  .top {
    background: #fff;
    padding-bottom: 5px;
    margin: 0 20px;
    padding-top: 30px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;

    .ipt {
      position: relative;

      width: 80%;
      input {
        width: 86%;
        background: #f7f7f7;
        height: 33px;
        border: none;
        color: #9d9d9d;
        font-size: 12px;
        padding-left: 32px;
      }
      .icon-sousuo {
        position: absolute;
        left: 12px;
        top: 9px;
        color: #9d9d9d;
        font-size: 15px;
      }
    }
    .buy {
      font-weight: 12px;
      color: #8fadb0;
      margin-left: 10px;
    }
  }
  .items {
    margin-right: 6px;
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    .item {
      text-align: center;
      width: 100%;
      .iconfont {
        font-size: 25px;
        margin-bottom: 10px;
        font-weight: bold;
      }
      .icon-Group,
      .icon-yuebing {
        font-weight: inherit;
      }
      .text {
        color: #a8a8a8;
        font-size: 13px;
      }
    }
  }
  .title {
    margin: 0 20px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    .left {
      font-size: 18px;
      font-weight: bold;
    }
    .right {
      font-size: 12px;
      color: #8aafa7;
    }
  }
  .content {
    margin: 0 20px;
    .swiper-container {
      display: flex;
      .swiper-wrapper {
        margin-right: 10px;
      }
    }
    .contain {
      .img {
        img {
          height: 246px;
          border-radius: 8px;
        }
      }
      .text {
        font-size: 14px;
        width: 153px;
        font-weight: bold;
      }
      .infoo {
        font-size: 10px;
        margin-top: 10px;
        color: #adadad;
        margin-bottom: 40px;
      }
    }
  }
}
</style>